package com.rraj.common.mq.test.transactionChecker;

import com.rraj.common.mq.MQTransactionChecker;
import com.xiaoleilu.hutool.date.DateUtil;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * Created by WangSheng on 2017/6/9.
 *
 * @author WangSheng
 * @date 2017/06/09
 */
@Component
@Qualifier("testTransactionChecker")
public class MQTestTransactionChecker implements MQTransactionChecker {
    @Override
    public boolean check() {
        System.out.println(DateUtil.now() + " 执行本地事务回调检测：MQTransactionChecker");
        return true;
    }
}
